//
//  PGCategoryViewCell.m
//  youqu
//
//  Created by 彭鹏 on 16/10/23.
//  Copyright © 2016年 pengpeng. All rights reserved.
//

#import "PGCategoryViewCell.h"
#import "PGCategoryItem.h"

@interface PGCategoryViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIView *lineView;
@end

@implementation PGCategoryViewCell

- (void)setItem:(PGCategoryItem *)item {
    _item = item;
    _nameLabel.text = item.name;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
   
    [super setSelected:selected animated:animated];
     _lineView.hidden = !selected;
//    NSLog(@"%zd",selected);
    
}

@end
